﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.interactive.List" %>
<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>师生互动</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/interactive.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/flora.datepick.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/Common.js"></script>
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick-zh-CN.js"></script>
  <script type="text/javascript">
    $(document).ready(
      function() {
        $("#FromDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
        $("#ToDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
      }
    );
  </script>
</head>
<body>
  <form id="form1" action="?act=s" method="post">
    <div class="m_top"></div>
    <div class="block" style="height:100px;">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;答疑列表</div>
      </div>
      <div class="spe_line_2"></div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">姓名：</div>
        <div class="fl"><input type="text" id="UserNameTxt" name="UserNameTxt" value="<%=userName %>" maxlength="100" /></div>
        <div class="fl" style="line-height:23px;">&nbsp;是否已回复：</div>
        <div class="fl">
          <select id="IsReplySlt" name="IsReplySlt">
            <option value="-1">全部</option>
            <option value="1">是</option>
            <option value="0">否</option>
          </select>
        </div>
      </div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">开始时间：</div>
        <div class="fl"><input id="FromDateTxt" name="FromDateTxt" value="<%=fromDate %>" />&nbsp;至&nbsp;<input id="ToDateTxt" name="ToDateTxt" value="<%=toDate %>" /></div>
        <div class="fl"><input type="image" src="/images/btn/search.gif" style="width:54px; height:23px; margin-left:20px;" /></div>
      </div>
    </div>
    
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;答疑信息</div>
      </div>
      <div class="spe_line_2"></div>
      
      <% if (qandaList != null && qandaList.Count > 0) { %>
    
      <div id="datatable">
        <div class="data_rows" style="font-weight:bolder;">
          <div class="d_r_n">学员姓名</div>
          <div class="d_r_d">提交时间</div>
          <div class="d_r_r">回复信息</div>
          <div class="d_r_o">操作</div>
        </div>
        
         <% foreach (ShortQandAModel model in qandaList) { %>
        <div class="data_rows">
          <div class="d_r_n"><%=model.UserName %></div>
          <div class="d_r_d"><%=model.AddDate %></div>
          <div class="d_r_r"><%=model.IsReply ? "已回复" : "未回复" %></div>
          <div class="d_r_o"><a href="/interactive/View.aspx?id=<%=model.ID %>">查看</a></div>
        </div>
      
         <% } %>
        
      </div>
      
      <div class="fr" style="margin:8px 0 0 0;"><%=mypager%></div>
      
      <%} %>
      <% if (act == "s"){ %>
       <script type="text/javascript">         document.getElementById("IsReplySlt").value = <%=isReply %>;</script>
      <% } %>
    </div>
  </form>
</body>
</html>
